#!/usr/bin/env python

from process import processtool
import time

def debugprocess():
    pt = processtool()
    pids = pt.getPids()
    processinfo = []
    fh = open('debugprocess.out', 'a')
    processinfo.append(pt.getProcessGeneralInfo(pids[-1]))
    for dic in processinfo:
        for i in dic.keys():
            fh.write('%s\t\t%s\n' % (i, dic[i]))
    fh.write('-'*80 + '\n')
    fh.close()
    return True
